<include file="Common:header" />
<TYjs file='fix_table_title'/>
<TYjs file='init'/>
<div class="table_content">
    <form action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/'.ACTION_NAME)}" method="post" class="ajax_form">
        <div class="toolbar">
            <select id="select_orders" name="order_find">
                <option value="1">用戶名</option>
                <option value="2">聯繫人</option>
                <option value="3">聯繫人號碼</option>
            </select>
            <input type="text" class="text w150" name="keywords"  title="請填寫关键词" placeholder="請填寫关键词"/>
            <button type="submit">查詢</button>
            <span style="float: right;padding-right: 10%;padding-top:0.4%">統計意見數量：
                <span style="color:#ff8800">
                    <empty name="ordersNum">
                        0
                    <else />
                        {$ordersNum}
                    </empty>
                </span>個
            </span>
        </div>
    </form>

    <form action="" method="post" class="ajax_form">
        <table class="orders_table">
            <tr>
                <th width="1.5%">id</th>
                <th width="7%">用戶名（意見者）</th>
                <th width="3%">性別</th>
                <th width="5%">聯繫人</th>
                <th width="8%">聯繫人號碼</th>
                <th width="25%">意見建議</th>
                <th width="10%">提交時間</th>
            </tr>
            <foreach name='suggestList' item='vo' key="k">
                <tr>
                    <td class="txtc">{$k+1}</td>
                    <td class="txtc">{$vo['user_name']}</td>
                    <td class="txtc">
                        <switch name="vo.sex">
                                <case value="1">男</case>
                                <case value="0">女</case>
                                <default />異常
                        </switch>
                    </td>
                    <td class="txtc">{$vo.contact}</td>
                    <td class="txtc">{$vo['contact_phone']}</td>
                    <td class="txtc">{$vo.content}</td>
                    <td class="txtc">{$vo['create_time']|date="Y-m-d H:i:s",###}</td>
                </tr>
                <tr style="height:10px;" >
                    <td class="bgcf5"colspan="8"></td>
                </tr>
            </foreach>
        </table>
    </form>
    <!-- 分頁 -->
    <div class="page">{$page}</div>

</div>
<include file="Common:footer" />

